//
//  QWHttpEngineConfig.h
//  WJHttpEngineAPI-example
//
//  Created by Yunhai.Wu on 15/12/25.
//  Copyright © 2015年 WJ. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "AbstractQWBusinessObject.h"
#import "QWSingleton.h"

/**
 *  WJHttpEngine 网络HTTP请求组件配置
 */
@interface QWHttpEngineConfig : AbstractQWBusinessObject

AS_SINGLETON(QWHttpEngineConfig)

/**
 *  默认超时时长(秒)
 *  default 60
 */
@property (nonatomic, assign, readonly) int defaultTimeoutDuration;

/**
 *  HTTP Engine
 *  default nil
 */
@property (nonatomic, readonly) Class defaultEngine;

/**
 *  http请求时是否默认打开状态栏网络活跃标识
 *  default YES
 */
@property (nonatomic, assign, readonly) BOOL defaultNetworkActivityEnabled;

/**
 *  过滤器列表
 */
@property (nonatomic, retain) NSArray *filters;


-(void) setTimeoutDuration:(int) timeoutDuration;

-(void) setEngine:(Class) engineClazz;

-(void) setNetworkActivityEnabled:(BOOL) enabled;

-(void) addFilter:(Class) filterClazz;

@end
